﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace IceDog.WebApi.AnythingApi.Controllers
{
    /// <summary>
    /// 隐藏参数类型测试
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class AnonymousParamsController : ControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        [HttpPost]
        public ActionResult Dictionary([FromBody] Dictionary<string, object> args)
        {
            return Ok(new { data = args});
        }
    }
}